package com.hxzy.controller.anony.dictdata.resp;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.hxzy.entity.SysDictData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * 功能描述
 *
 * @author tonneyyy
 */
@Getter
@Setter
@ApiModel(value = "通用数据字典")
public class AnonyDictDataResp {

    public AnonyDictDataResp(){

    }

    public AnonyDictDataResp(SysDictData sysDictData){
        this.id = sysDictData.getId();
        this.dictLabel = sysDictData.getDictLabel();
        this.dictValue = sysDictData.getDictValue();
        this.dictType = sysDictData.getDictType();
        this.listClass = sysDictData.getListClass();
    }

    @ApiModelProperty(value = "字典主键")
    private Long id;

    /**
     * 字典标签
     */
    @ApiModelProperty(value = "字典标签")
    @JsonProperty(value = "label")
    private String dictLabel;

    /**
     * 字典键值
     */
    @ApiModelProperty(value = "字典键值")
    @JsonProperty(value = "value")
    private String dictValue;

    /**
     * 字典类型
     */
    @ApiModelProperty(value = "字典类型")
    private String dictType;



    /**
     * 表格回显样式
     */
    @ApiModelProperty(value = "表格回显样式")
    private String listClass;


}
